import { DataTypes } from "sequelize";
import sequelize from "../db/db";

const ArticleComment = sequelize.define(
  "ArticleComment",
  {
    content: {
      type: DataTypes.STRING,
      allowNull: false,
    },
    name: {
      type: DataTypes.STRING,
      allowNull: false,
    },
    imgUrl: {
      type: DataTypes.STRING,
      allowNull: false,
    },
    createdTime: {
      type: DataTypes.STRING,
    },
  },
  { paranoid: true }
);

export default ArticleComment;
